﻿using System.ServiceModel;
using MediaBrowserSL.BOL;
using MediaBrowserSL.Services;


namespace MediaBrowserSL.IServices
{
    [ServiceContract]
    public interface IAuthenticationService
    {
        [OperationContract]
        [FaultContract(typeof(ErrorDataContract))]
        User ExistUser(string Login, string password);

        [OperationContract]
        [FaultContract(typeof(ErrorDataContract))]
        int CreateUser(string firstName, string lastName, string Login, string password);

        [OperationContract]
        [FaultContract(typeof(ErrorDataContract))]
        User UpdateStatut(User u);

        [OperationContract]
        [FaultContract(typeof(ErrorDataContract))]
        bool ExistLogin(string Login);
    }
}
